<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<div class="tabs-menu v-row">          		     
    <c:choose>
		<c:when test="${bean.tab == 'listMembers'}">
			<div class="tabs-state tabs-state-active">
				<a><spring:message code="project.list.member" /></a>
			</div>
		</c:when>
		<c:otherwise>
			<c:set value="members.htm?pnum=${bean.project.number}&tab=listMembers" var="listMembers"/>
			<div class="tabs-state tabs-state-default">
				<a href='<c:out value="${listMembers}" />'> 
					<spring:message code="project.list.member" /></a>
			</div>
		</c:otherwise>
	 </c:choose>
	 
	 <c:choose>
		<c:when test="${bean.tab == 'addMembers'}">
			<div class="tabs-state tabs-state-active">
				<a><spring:message code="project.add.member" /></a>
			</div>
		</c:when>
	    <c:otherwise>
				<c:set value="members.htm?pnum=${bean.project.number}&tab=addMembers" var="addMembers"/>
				<div class="tabs-state tabs-state-default">
				<a href='<c:out value="${addMembers}" />'> 
					<spring:message code="project.add.member" /></a>
				</div>
		</c:otherwise>
	</c:choose>
    
    <c:choose>
		<c:when test="${bean.tab == 'activities'}">
			<div class="tabs-state tabs-state-active">
				<a><spring:message code="title.project.list.activities"/></a>
			</div>
		</c:when>
		<c:otherwise>
			<c:set value="activityLog.htm?pnum=${bean.project.number}" var="activitiesUrl"/>
			<div class="tabs-state tabs-state-default">
				<a href='<c:out value="${activitiesUrl}" />'> 
					<spring:message code="title.project.list.activities"/>
				</a>
			</div>
		</c:otherwise>
	 </c:choose>
	 
    <c:choose>
		<c:when test="${bean.tab == 'report'}">
			<div class="tabs-state tabs-state-active">
				<a><spring:message code="title.project.workspace.tab.report"/></a>
			</div>
		</c:when>
		<c:otherwise>
			<c:set value="report.htm?pnum=${bean.project.number}" var="reportUrl"/>
			<div class="tabs-state tabs-state-default">
				<a href='<c:out value="${reportUrl}" />'> 
					<spring:message code="title.project.workspace.tab.report"/>
				</a>
			</div>
		</c:otherwise>
	 </c:choose>

     <c:choose>
		<c:when test="${bean.tab == 'gantt'}">
			<div class="tabs-state tabs-state-active">
				<a><spring:message code="title.project.workspace.tab.gantt"/></a>
			</div>
		</c:when>
		<c:otherwise>
			<c:set value="gantt.htm?pnum=${bean.project.number}" var="ganttUrl"/>
			<div class="tabs-state tabs-state-default">
				<a href='<c:out value="${ganttUrl}" />'> 
					<spring:message code="title.project.workspace.tab.gantt"/>
				</a>
			</div>
		</c:otherwise>
	 </c:choose>   
	         		
	 <c:choose>
		<c:when test="${bean.tab == 'documents'}">
			<div class="tabs-state tabs-state-active">
				<a><spring:message code="title.project.workspace.tab.documents"/></a>
			</div>
		</c:when>
		<c:otherwise>
			<c:set value="documents.htm?pnum=${bean.project.number}" var="documentsUrl"/>
			<div class="tabs-state tabs-state-default">
				<a href='<c:out value="${documentsUrl}" />'> 
					<spring:message code="title.project.workspace.tab.documents"/>
				</a>
			</div>
		</c:otherwise>
	 </c:choose> 	    					
</div>